<?php
require "vendor/autoload.php";


use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;


    $con = new AMQPStreamConnection('42.192.183.38', 5603, 'guest', 'guest');
    var_dump($con);
    $re = $con->channel();
    var_dump($re);



// Create a Executorcls for HTTP
// $exec = new HAProxy\Executor('http://192.168.169.110:8103/haproxy', HAProxy\Executor::HTTP);
// // Set your HAProxy stats page credentials
// $exec->setCredentials('username', 'password');
// Disable foo-nodes/node01.foobar.com in the load balancer
